#include<bits/stdc++.h>

using namespace std;

bool dp[101];
int n = 100;
vector<int> primes;
void init(int n){
    for (int i = 0; i <= n; i++)dp[i] = true;
    dp[0] = dp[1] = false;
    for (int i = 2; i <= n / i; i++) {
        if (dp[i]) {
            for (int j = 2 * i; j <= n; j += i) {
                dp[j] = false;
            }
        }
    }
}
int main() {
    init(n);
    for (int i = 0; i <= n; i++) {
        if (dp[i]) {
            cout << i << " ";
            primes.push_back(i);
        }
    }
    return 0;
}